package com.tqjc.common.faulthandle.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tqjc.common.faulthandle.entity.FaultRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;
import java.util.List;
import java.util.Map;

/**
 * @projectName: BaotouSteel
 * @className: FaultRecordMapper.xml
 * @author: Patienyon
 * @description: 故障记录mapper
 * @date: 2023-07-04 16:20
 */

@DS("baotou")
@Mapper
public interface FaultRecordMapper extends BaseMapper<FaultRecord> {

    List<Map<String,Integer>> getFaultTypeAndCountByParams(@Param("craneType") String craneType, @Param("workMode")String workMode, @Param("beginTime") Timestamp beginTime, @Param("endTime")Timestamp endTime, @Param("fuzzyMapper")String fuzzyMapper);
}
